<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:if test="${empty bookingHistory}">
ERROR - please go back to Welcome.jsp to re book your stall.
</c:if>

<!-- Authors: Mareike, David -->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="style.css" rel="stylesheet" type="text/css" />

<title>Booking History at Moss Street Market for ${username}</title>
</head>
<body>

	<div class="main">
		<div class="header">
			<div class="header_resize">
				<div class="logo">
					<h1>
						<span>MossStreet</span>Market <small>Organic food,
							pottery, clothing ... just for you</small>
					</h1>
				</div>
				<div class="clr"></div>
				<div class="menu_nav">
					<ul>
						<li class="active"><a href="index.html">Home</a></li>
						<li><a href="Login.jsp">Login</a></li>
						<li><a href="index.html">Contact Us</a></li>
						<li><a href="index.html">Impressum</a></li>
					</ul>
				</div>
				<div class="clr"></div>
			</div>
		</div>
		<div class="content">
			<div class="content_resize">
				<div class="mainbar_long">
					<div class="article">
						<h2>
							<span>History of Bookings at Moss Street Market for
								${username}:</span>
						</h2>
						<div class="clr"></div>
						<table width="100%" border="1" bordercolor="#FFFFFF" class="body">
							<tr>
								<td width="12%" bgcolor="#DDDDFF"><b>User Name</b></td>
								<td width="20%" bgcolor="#FFFFFF"><b>Stall Number</b></td>
								<td width="12%" bgcolor="#DDDDFF"><b>Date</b></td>
							</tr>

							<c:forEach var="booking" items="${bookingHistory}">
								<tr>
									<td width="12%" bgcolor="#DDDDFF">${username}</td>
									<td width="20%" bgcolor="#FFFFFF">${booking.stallNumber}</td>
									<td width="20%" bgcolor="#DDDDFF">${booking.dateReserved}</td>
								</tr>
							</c:forEach>
						</table>
						<p>
						<form method="post" action="Welcome.jsp">
							Make another Booking.<br> <br> <input type="hidden"
								name="stallnotavailable" value="false" /> <input type="submit"
								name="Select New Stall" value="Pick Stall"><br> <br>
						</form>
						</p>
						<p>
						<form method="post" action="LoggedOut.jsp">
							Logout of Moss Street Market.<br> <br> <input
								type="submit" name="Log Out" value="Log Out"><br> <br>
						</form>
						</p>
					</div>
				</div>

				<div class="clr"></div>
			</div>
		</div>

		<div class="footer">
			<div class="footer_resize">
				<p class="lf">
					Copyright &copy; 2011 <a href="#">moSSSolutions</a> - All Rights
					Reserved
				</p>
				<p class="rf">
					Your web-based application provided by <a
						href="http://www.mosssolutions.wordpress.com">moSSSolutions</a>
				</p>
				<div class="clr"></div>
			</div>
		</div>
	</div>
</body>
</html>